package org.goyo.main.services.sale;

import java.util.List;

import org.goyo.common.exception.DBException;
import org.goyo.common.exception.ServiceException;
import org.goyo.common.utils.Pager;
import org.goyo.main.domain.entity.sale.SaleOrder;
import org.goyo.main.domain.entity.sale.SaleOrderEntry;
import org.goyo.main.domain.entity.system.SysUser;
import org.springframework.web.multipart.MultipartFile;

public interface ISaleOrderService {
	
	public Pager<SaleOrder> findByCondition(String where,Pager pager,Object[] groupUuids) throws DBException,ServiceException; 

	public SaleOrder saveOrUpdateInfo(SaleOrder info,Object[] uuids,SysUser user) throws DBException,ServiceException;
	
	public List<SaleOrderEntry> findByParentId(String parentId) throws DBException,ServiceException;
	
	public void delByUuids(Object[] uuids) throws DBException,ServiceException;
	
	public SaleOrder submitByUuids(Object[] uuids,SysUser user) throws DBException,ServiceException;
	
	public SaleOrder auditByUuids(Object[] uuids,SysUser user) throws DBException,ServiceException;

	public SaleOrder unAuditByUuids(Object[] uuids,SysUser user) throws DBException,ServiceException;

	public SaleOrder findByUuuid(String uuid)  throws DBException,ServiceException;
	
	public Pager<SaleOrderEntry> findByEntryCond(String where,Pager pager) throws DBException,ServiceException;
	
	public void importExcel(MultipartFile maltipartFile,SysUser user,String billNumber) throws Exception;


}
